Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain().
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Mar 2008 17:50:10 +0000 (17:50 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 Mar 2008 17:50:10 +0000 (17:50 +0000)
commite77233e6d10763bed5abaa9c77007f4f873e3c72
tree5a42747007835d847999096753f8bf3e92735a41
parentabedf8293a4a903c81adec7aa6faf8be338b9898
Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain().

In particular this *removes* some IS_PRIV_FOR() checks. *Especially*
in particular, all domctls are executable only by dom0. Several of
them were really unsafe for execution by a stub domain as they can
affect global system resource usage.

This probably breaks stub domains. Where necessary, some of these
reversions can themselves be reverted where they are judged both
necessary and safe.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm.c
xen/common/domain.c
xen/common/domctl.c
xen/common/event_channel.c
xen/common/grant_table.c
xen/common/memory.c